package com.etc.controller;

import com.etc.domian.User;
import com.etc.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;


/**
 * @Author kalista
 * @Description
 * @Date 2020/9/15  15:12
 **/
@Controller
public class IndexController {

    @Autowired
    private UserRepository userRepository;

    @GetMapping("index")
    public String index() {
        return "index";
    }

    @GetMapping("tologin")
    public String home(String str) {
        return "login";
    }
}
